using System;

namespace Deepcode.Flux.Core.Systems.Workflow.Attribs
{
	/// <summary>
	/// Attribute class to implement the [WorkflowMethodUI] Property
	/// which marks a method as being exposed to the workflow engine,
	/// as a User Interface action.
	/// </summary>
	[AttributeUsage(AttributeTargets.Method)]
	public class WorkflowMethodUI : System.Attribute
	{
		private string friendlyMethodName;
		public string FriendlyMethodName{ get{ return friendlyMethodName; }}
		/// <summary>
		/// Marks a method as exposing a UI hyperlink
		/// </summary>
		/// <param name="FriendlyMethodName"></param>
		/// <param name="ConfigurationClassName"></param>
		public WorkflowMethodUI(string sFriendlyMethodName )
		{
			friendlyMethodName = sFriendlyMethodName;
		}
	}
}
